<?php

class NewHashPassword{
    
    public static $salt = "haskpass";
    /**
     *
     * @param type $password
     * @return type 
     */
    public static function hashPassword($password){
        return md5($password.self::$salt);
    }
    
    /**
     * 
     */
    public static function verifyPassword($newPass,$passhash){
        if($passhash == md5($newPass.self::$salt)){
            return true;
        }else{
            return false;
        }
    }
}